Skip to content

Conversation

@jkebinger
Copy link
Contributor

Description

This change adds a way to register for notifications on config changes; this will be useful for applications that need to "push" config changes into components when the value changes

Testing & Validation

Added tests

@jkebinger jkebinger requested a review from semanticart May 9, 2025 19:28

describe("ConfigChangeNotifier integration", () => {
let prefab: Prefab;
// const apiKey = process.env["PREFAB_TEST_API_KEY"] ?? "fallback-api-key-if-not-set"; // apiKey might not be needed if init is fully mocked
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove this and other conversational comments? e.g. // No longer async

Comment on lines 1428 to 1430
describe("init with datafile", () => {
// ... existing code ...
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙃

@jkebinger jkebinger merged commit 7bf8fd0 into main May 12, 2025
2 checks passed
@jkebinger jkebinger deleted the add-change-listener branch May 12, 2025 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants